package thread;

public class Notify {

    public static void main(String[] args) {

        Notify notify = new Notify();
        synchronized (notify) {
           while (true) {
               try {
                   notify.wait();
               } catch (InterruptedException e) {

               }
           }
        }

    }

}
